<?php
require_once(OC::$SERVERROOT.'/apps/joomla/application.php');
JLoader::import('joomla.application.component.model', JPATH_LIBRARIES);
JLoader::register("CensorHelper", JPATH_SITE.'/components/com_censor/helper.php');
JLoader::register("TagsHelper", JPATH_SITE.'/components/com_tag/helper/helper.php');
JLoader::register('PInterviewHelper', OC::$SERVERROOT.'/apps/interview/lib/helper.php');

// init pipapai application
PFactory::init();

$l = OC_L10N::get('resumes');
$user = PFactory::getUser();
if(isset($user->cb_usertype) && $user->cb_usertype == 'jobseeker') {
    return;
}    
OCP\App::addNavigationEntry( array( "id" => "resumes_index",
									"order" => 2,
									"href" => OCP\Util::linkToRoute("resumes_index"),
									"class" => "hr_i_resume",
									"name" => "简历管理" ));

OCP\Share::registerBackend('resumes', 'OC_Share_Backend_Resume');
